package com.chainyoung.component_tmmarket.mvp.contract;

import com.chainyoung.common.bean.UserInfo;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmmarket.bean.MarketList;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface MarketMainContract {

    interface View extends IView{
        void showMarketCurrencys(MarketList data);

        void onGetMarketCurrencysFailed();

        void onGetUserInfoSuccess(UserInfo userInfo);
    }

    interface Model extends IModel{
        Flowable<MarketList> getMarketCurrencys();
        Flowable<UserInfo> getUserInfo(TreeMap<String,Object> map);

    }

}
